const debug = true
const appName = ''
const appLetterName = 'zscq'
exports.adminServerKey = '58Zh~7hhZRU1EuQU' //管理员后台 MD5通信加盐
exports.tokenKey = 'iEugX6XACOhhUbkmVWfp' //jwt 验证token

exports.mysql = function() {
  if (debug) {
    return {
      HOST: '192.168.31.2',
      USER: 'root',
      PSWD: 'root',
      DB: 'zscq',
      PORT: 3306
    }
  } else {
    return {
      HOST: 'localhost',
      USER: 'user',
      PSWD: 'user',
      DB: 'qgy',
      PORT: 3306
    }
  }
}

exports.redis = function() {
  if (debug) {
    return {
      HOST: '192.168.31.2',
      PORT: 6379,
      DBINDEX: 12
    }
  } else {
    return {
      HOST: '127.0.0.1',
      PORT: 6379,
      DBINDEX: 0
    }
  }
}

exports.app_config = {
  CLEINT_PORT: 20196,
  SERVER_PRI_KEY: '~!@#&$(*&^%$&*()'
}
